import { useFetch } from "@/http/useFetch";

export const fetchSettingUpdate = async function(data?: any) {
  return await useFetch({
    data,
    config: {
      method: "POST"
    },
    url: "/sys/updateSetting"
  });
};
export const fetchSettingGet = async function(data?: any) {
  return await useFetch({
    data,
    config: {
      method: "POST"
    },
    url: "/sys/getSetting"
  });
};
export const fetchUpdatePassword = async function(data?: any) {
  return await useFetch({
    data,
    config: {
      method: "POST"
    },
    url: "/sys/modifyPwd"
  });
};
